package com.atguigu.springcloud.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @author timo 2021/3/11
 */
@Configuration
@PropertySource( ignoreResourceNotFound = true,encoding = "UTF-8" ,value = "classpath:/defal-db.yml",factory = YamlConfigFactory.class)
@PropertySource( ignoreResourceNotFound = true,encoding = "UTF-8" ,value = "classpath:h2-defal-db.properties")
@EnableJpaRepositories(basePackages = {"com.atguigu.springcloud.jpa"}) //这个是jpa repository的包的路径
@EntityScan("com.atguigu.springcloud.entities") //不在一个项目中需要配置
@ComponentScan(basePackages = "com.atguigu.springcloud")
public class H2DbConfiguration {


}
